package com.example;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * Spring Boot 主应用类
 * 
 * @EnableAspectJAutoProxy 注解启用AspectJ自动代理
 * 这样Spring就能自动创建代理对象并进行"织入（Weaving）"操作
 */
@SpringBootApplication
@EnableAspectJAutoProxy
public class AopDemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(AopDemoApplication.class, args);
    }
} 